<div class="title">Edit customer</div>
<br /><br />

<form action="{$url}" method="post">
<input type="hidden" name="action" value="doSubmitSubscriber" />
<input type="hidden" name="id" value="{$id}" />

<table border=0>
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Subscriber ID</td>
    <td>{$usr.id}</td>
</tr>
<!--
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Nickname:</td>
    <td><input type="text" name="name" value="{$usr.name}" class="input_text" /></td>
</tr>
-->
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">First name:</td>
    <td><input type="text" name="fname" value="{$usr.fname}" class="input_text" /></td>
</tr>
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Last name:</td>
    <td><input type="text" name="lname" value="{$usr.lname}" class="input_text" /></td>
</tr>
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Email:</td>
    <td><input type="text" name="email" value="{$usr.email}" class="input_text" /></td>
</tr>
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Country</td>
    <td><input type="text" name="country" value="{$usr.country}" class="input_text" /></td>
</tr>

                <tr class="light">
                    <td align="right" width="20%" valign="top">Mail groups:<sup><font color=red></font></sup>&nbsp;</td>
                    <td>
                        <select name="mail_groups[]" class='inputtext' style="width:50%;" size=10 multiple>
                        {foreach from=$list_mail_groups  item=group}
                            <option value="{$group.group_id}"{if in_array($group.group_id, $usr.mail_groups)} selected{/if}>{$group.name}</option>
                        {/foreach}
                        </select>
                        <font color="red">(You can select several groups)</font>
                    </td>
                </tr>


<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Client intrested in</td>
    <td><input readonly type="text" value="{$isinterest}" class="input_text" /></td>
</tr>

<tr class="{cycle values="dark,light"}">
<td>How user hear about us
</td>
<td>
<select name="how_hear">
{foreach from=$hhear item=itm}
<option value="{$itm.how_id}" {if $itm.how_id == $usr.how_hear} selected {/if}>{$itm.how_title}</option>
{/foreach}
</select>
</td>
</tr>



<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;"></td>
    <td>
        <input type="submit" value=" Submit " class="button" />
        &nbsp;&nbsp;
        <input type="button" value=" Cancel " class="button" onclick="javascript: window.location.href='?path=customerslist'" />
    </td>
</tr>
</form>

</table>
